import React, { Component } from 'react'
import {HashRouter as Router,Route,Switch,exact} from "react-router-dom"
import Login from './Login'
import Register from './Register'

export default class Mine extends Component {
  render() {
    return (
      <div>
        <h3>用户管理</h3>
        <div>
            <a href='#/mine/login'>登录|</a>
            <a href='#/mine/register'>注册</a>
        </div>
        <Router>
            <Switch>
                    <Route path="/mine/"  component={Login} exact></Route>
                    <Route path="/mine/login" component={Login} ></Route>
                    <Route path="/mine/register" component={Register}></Route>
            </Switch>
        </Router>
    
      </div>
    )
  }
}
